<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <a href="/photo/upload">点击上传</a>
    <p>照片存储应用</p>
    <div id="photos">
        <% data.forEach(item => { %>
            <div class="photo">
                <h2><%=item.name%></h2>
                <a href="/photo/download?fileName=<%=item.file_name%>">
                  <img src='<%=item.path%>'/>
                </a>
            </div>
        <%})%>
    </div>
  </body>
</html>
